Repository navigation
fix(project): 读取项目文件时兼容 Flet 版的 checked_entries 字段 - #2
Merged
Merged
Conversation
Flet 版写 checked_entries,本版只读 checked_files,互相打开项目时勾选 状态丢失(队列 items 正常,但文件树里的勾选标记没了)。 读取顺序改为优先 checked_files(本版字段),缺失时回退 checked_entries。 cli.vala 与 services/project_manager.vala 两处加载路径同步修改。 配合 Flet 版 save_project 双写两个字段名,双向兼容。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Flet 版写
checked_entries,本版只读checked_files,互相打开项目时勾选状态丢失(队列 items 正常,但文件树里的勾选标记没了)。改动
src/cli.vala、src/services/project_manager.vala两处加载路径:优先读checked_files(本版字段),缺失时回退checked_entriessave_project双写两个字段名(Sam-Fic/FileCollector-flet 已提交)验证
本机无 Vala 工具链(
valac/meson均未安装,WSL 无发行版),因此依赖本 PR 的 CIlint+debjob 做真实编译验证。改动仅替换一处字段读取分支,未触及类型签名与调用方。